import request from '@/utils/request';

export function getOneFilm(id) {
    return request({
        url: `film/video/info/${id}`,
        method: 'get',
    })
}
export function queryVideo(key) {
    return request({
        url: `film/video/list/`,
        method: 'get',
        params: {
            key
        }
    })
}
export function getAllVideo(limit, page) {
    return request({
        url: `film/video/list`,
        method: 'get',
        params: {
            limit,
            page
        }
    })
}
export function getVideoSrc(sign) {
    return request({
        url: `video/getPlayInfo/${sign}`,
        method: 'get'
    })
}
export function submitComment(params) {
    return request({
        url: `film/videocommont/save`,
        method: 'post',
        data: params
    })
}
export function addHistory(params) {
    return request({
        url: `film/videouserhistory/save`,
        method: 'post',
        data: params
    })
}
export function deleteHistory(params) {
    return request({
        url: `film/videouserhistory/delete`,
        method: 'post',
        data: params
    })
}